<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>跨域测试</title>

    <script type="text/javascript" src="../js/jquery-3.4.1.js"></script>
    <script type="text/javascript">
        function xx() {
            $.getJSON("http://localhost:9090/user/queryArea?areaCode=HN1",function (result) {
                alert(result);
            });
        }
    </script>
</head>
<body>
按钮：<input id="mybutton" type="button" value="点我" name="点我" onclick="xx()"/>
</body>

</html>
